package com.cloud.lawcase.api.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import com.cloud.lawcase.api.entity.TcLawRelCauseBiz;
import com.cloud.lawcase.common.utils.BaseMapperHelper;

public interface TcLawRelCauseBizMapper extends BaseMapperHelper<TcLawRelCauseBiz> {
	
	@Delete("delete from tc_law_rel_cause_biz where law_id in (select law_id from tc_dic_law where group_id = #{groupId})")
	void deleteByGroupId(@Param("groupId") Long groupId);

	@Delete("delete from tc_law_rel_cause_biz where cause_id = #{causeId}")
	void deleteByCauseId(@Param("causeId")long causeId);
}